<include file="__PUBLIC__/header.html" />
	<script type="text/javascript" src="__TPL__/js/slide.js"></script>
	<title>影片列表 - {$const.webname} </title>
<include file="__PUBLIC__/top.html" />

	<!-- 内容开始 -->
	<div class="w1180 auto mt20 fix">
		<div class="fm rel">
			<span class="f24 black2">频道名称</span>
			<div class="abs r0 t0">
				<span class="fm f16 gray1">当前频道共有影片</span><br>
				<span class="fm f16 gray1"><b class="fg red2 f24 p5">{$total}</b>部</span>
			</div>
		</div>
		<!-- 排序 -->
		<div class="mt30 fm f14">
			<span class="fm mr5">排序：</span>
			<span id="order">
			<a href="{|U('List/index',array('cid'=>$_GET['cid'],'nav'=>$_GET['nav'],'order'=>1))}" class="rad5 p2 pl5 pr5 bgred white black f14 mr5" >评论最多</a>
			<a href="{|U('List/index',array('cid'=>$_GET['cid'],'nav'=>$_GET['nav'],'order'=>2))}" class="rad5 p2 pl5 pr5 f14 black mr5">喜欢最多</a>
			<a href="{|U('List/index',array('cid'=>$_GET['cid'],'nav'=>$_GET['nav'],'order'=>3))}" class="rad5 p2 pl5 pr5 f14 black mr5">最高评分</a>
			<a href="{|U('List/index',array('cid'=>$_GET['cid'],'nav'=>$_GET['nav'],'order'=>4))}" class="rad5 p2 pl5 pr5 f14 black">最新发布</a>
			</span>
		</div>
		<!-- 排序结束 -->

		<list from="$article" name="a">
			<!-- 图片列表 -->
			<div class="dib w280 bgwhite mt30 mr10 of">
				<a href="{|U('Index/content',array('cid'=>$a['cid'],'aid'=>$a['aid'],'nav'=>$_GET['nav']))}">
					<img class="bgblack" width="280" height="190" src="__ROOT__/{$a.medium}" alt="" />
				</a>
				<p class="fm p10 f14 h40">{$a.title|mb_substr:0,35,'utf8'}</p>
				<div class="p10 rel">
					<i class="icon-comment icon-large gray4 mr5"></i><span class="vm">{$a.comments}</span>
					<i class="icon-heart icon-large gray4 mr5 ml20"></i><span class="">{$a.enjoys}</span>
					<p class="abs r10 t5">
						<span class="dib w90 h14 star f0 ">
							<b class="dib h14 f0" style="width:{$a.star|getStarPct}%"></b>
						</span>
						<span class="f14 orange1 vt">{$a.star}</span>
					</p>
				</div>
			</div>
			<!-- 图片列表结束 -->
		</list>
		<div class="page mt10">{$page}</div>
	</div>
	<!-- 内容结束 -->


<script type="text/javascript">
	var order = '{$_GET["order"]}';

	if(order){
		var k = Number(order);
		--k;
		$('#order a').removeClass('bgred white');
		$('#order a').eq(k).addClass('bgred white');
	}
</script>








<include file="__PUBLIC__/bottom.html" />